import request from '@/utils/request'
// 获取部门
export const getDepartment = () => request.get('/company/department')
// 获取部门负责人列表
export const getDepartmentManage = () => request.get('/sys/user/simple')
// 获取部门详情
export const reviseDepartment = id => request.get(`/company/department/${id}`)
// 修改部门
export const updataDepartment = data => request.put(`/company/department/${data.id}`, data)
// 添加部门
export const addDepartment = data => request.post('/company/department', data)
// 删除部门
export const delDepartment = id => request.delete(`/company/department/${id}`)
